package com.bzm.common.entity;

import java.io.Serializable;

import com.bzm.common.global.GlobalConfig;

import lombok.Data;

@Data
public class JsonResult<T> implements Serializable{

	private static final long serialVersionUID = 8686627581058827045L;
	//返回数据
    private T data;
    //错误码
    private Integer code;
    //描述信息
    private String msg;
    
    private String fileService;
    
    public JsonResult(){
    		
    }
    
    public JsonResult(T data,HttpCode httpCode) {
        this.data = data;
        this.code = httpCode.getCode();
        this.msg = httpCode.getMsg();
        this.fileService = GlobalConfig.FILE_SERVICE_LOCATION;
    }
}
